package cn.com.db.service;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.com.db.dao.WxDiyPayResultDao;
import cn.com.db.model.WxDiyPayResult;

@Service
@Transactional
public class WxDiyPayResultService extends BaseService {

		
		public void createWxDiyPayResult(WxDiyPayResult wxDiyPayResult) {
			wxDiyPayResultDao.createWxDiyPayResult(wxDiyPayResult);
		}

		public void updateWxDiyPayResult(WxDiyPayResult wxDiyPayResult1) {
			wxDiyPayResultDao.updateWxDiyPayResult(wxDiyPayResult1);
		}

		public String getOrdersById(String wx_order_id) {
			return wxDiyPayResultDao.getOrdersById(wx_order_id);
		}

		public String getPrepayId(String wx_order_id) {
			return wxDiyPayResultDao.getPrepayIdById(wx_order_id);
		}

		public WxDiyPayResult getPayResultByOrderId(String orderId) {
			return wxDiyPayResultDao.getPayResultByOrderId(orderId);
		}

		public String getPrepayIdByOrderId(String orderId) {
			return wxDiyPayResultDao.getPrepayIdByOrderId(orderId);
		}

}
